<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>我</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
         <script src="jquery-2.2.1.js"></script>
		<!--标准mui.css-->
		<link rel="stylesheet" href="css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="css/app.css" />
		
		<script type="text/javascript">
			function  jiazai()
			{
				$.post("http://localhost:8080/getalllessions",null,
        function(data){
           // console.log("addr");
            $("#aaa").text(JSON.stringify(data));
        });
			}
			
			 
			
			
		</script>
		<script>
			
			function shanchu()
			{
			$.post("http://localhost:8080/deleteall",null);
			}
			
			
			function add()
			{
				$.post("http://localhost:8080/addlession",null);
			}
			
			
			
			function closeapp()
			{
				window.quit();
			}
		</script>
		
		
	</head>
	<body>
		 <header class="mui-bar mui-bar-nav">
			 
			 
			<h1  class="mui-title">
	我
			</h1>
			</center>
		</header>
		<nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item"href="kechengbiao.html">
				<span class="mui-icon mui-icon-star"></span>
				<span class="mui-tab-label">课程表</span>

			</a>
			<a class="mui-tab-item" href="xiaoyuan.html">
				<span class="mui-icon mui-icon-email">	</span>
				<span class="mui-tab-label">校园</span>

			</a>

			<a class="mui-tab-item mui-active"  href="wo.html">
				<span class="mui-icon mui-icon-gear"></span>
				<span class="mui-tab-label">我</span>

			</a>
		</nav>
			
			<div class="mui-content">
			<!--页面主内容区开始-->
 
				 <ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								 <img src="images/touxiang.jpg"width="20%"height="20%">
								 一言未尽
								<p class='mui-ellipsis'>账号:一言未尽</p>
							</li>
						</ul>
									 
								</a>
							</li>
						</ul>
						 
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								<a href="#notifications" class="mui-navigate-right">消息通知</a>
							</li>
						  
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								<a href="#"onclick="jiazai()" class="mui-navigate-right">显示数据库中所有课程信息JSON<i class="mui-pull-right update">点击按钮</i></a>
							</li>
						</ul>
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								<a href="#"onclick="shanchu()" class="mui-navigate-right">删除数据库中所有课程信息<i class="mui-pull-right update">点击按钮</i></a>
							</li>
						</ul>
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								<a href="#"onclick="add()" class="mui-navigate-right">添加所有课程信息进入数据库<i class="mui-pull-right update">点击按钮</i></a>
							</li>
						</ul>
						
							<li class="mui-table-view-cell">
								<a href="#general" class="mui-navigate-right">设置</a>
							</li>
						</ul>
						<ul class="mui-table-view mui-table-view-chevron">
							<li class="mui-table-view-cell">
								<a href="#about" class="mui-navigate-right">关于课程格子<i class="mui-pull-right update">V1.0.0</i></a>
							</li>
						</ul>
						 
						
						
						
						
						<ul class="mui-table-view">
							<li class="mui-table-view-cell" style="text-align: center;">
								<a href="#"onclick="closeapp()">退出登录</a>
							</li>
						</ul>
				 
			 
			<!--页面主内容区结束-->
		</div>
		 </div>
		 
		 <div id="aaa">数据库搜索信息在这里显示</div>
	</body>
</html>
